import {createSlice} from '@reduxjs/toolkit'

const shopcart=createSlice({
    name:'shopcart',
    initialState:{
        shopcartList:[]
    },
    reducers:{
        setShopCartListSync(state,action){
            state.shopcartList=action.payload
        }
    }
})
export const {setShopCartListSync}=shopcart.actions
export default shopcart.reducer